package com.fire.modules.entity;

import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author theodo
 * @since 2017-10-28
 */
public class TbUser extends Model<TbUser> {

    private static final long serialVersionUID = 1L;

	private Long userId;
	//用户编码
	private String userCode;
	//微信名称
	private String wxname;
	//微信oppenid
	private String wxoppenid;
	//微信头像图片
	private String wximpurl;
	//昵称
	private String username;
	//真实姓名
	private String realname;
	//电话号码
	private String mobile;
	//登录密码
	private String password;
	//支付密码
	private String paypassword;
	//上级编号，0:表示没有
	private String firstCode;
	//银行卡账号
	private String bankCardCode;
	//微信号码
	private String wxnumber;
	//用户账号状态，0:未删除，1:已删除
	private Integer delete_type;
	//创建时间
	private Date create_Time;
	//所属公司编码
	private String companyCode;
	//所属公司名称
	private String companyName;
	//所属门店编码
	private String storeCode;
	//身份证图片正面图
	private String idCard_yes_faceImg;
	//身份证图片反面图
	private String idCard_no_faceImg;
	//职业认证图
	private String authImg;
	//积分
	private Integer integral;
	//用户等级 根据消费积分来评定
	private String user_level;
	// 性别（1是男性，2是女性，0是未知）
	private Integer sex;

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getWxname() {
		return wxname;
	}

	public void setWxname(String wxname) {
		this.wxname = wxname;
	}

	public String getWxoppenid() {
		return wxoppenid;
	}

	public void setWxoppenid(String wxoppenid) {
		this.wxoppenid = wxoppenid;
	}

	public String getWximpurl() {
		return wximpurl;
	}

	public void setWximpurl(String wximpurl) {
		this.wximpurl = wximpurl;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPaypassword() {
		return paypassword;
	}

	public void setPaypassword(String paypassword) {
		this.paypassword = paypassword;
	}

	public String getFirstCode() {
		return firstCode;
	}

	public void setFirstCode(String firstCode) {
		this.firstCode = firstCode;
	}

	public String getBankCardCode() {
		return bankCardCode;
	}

	public void setBankCardCode(String bankCardCode) {
		this.bankCardCode = bankCardCode;
	}

	public String getWxnumber() {
		return wxnumber;
	}

	public void setWxnumber(String wxnumber) {
		this.wxnumber = wxnumber;
	}

	public Integer getDelete_type() {
		return delete_type;
	}

	public void setDelete_type(Integer delete_type) {
		this.delete_type = delete_type;
	}

	public Date getCreate_Time() {
		return create_Time;
	}

	public void setCreate_Time(Date create_Time) {
		this.create_Time = create_Time;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}

	public String getIdCard_yes_faceImg() {
		return idCard_yes_faceImg;
	}

	public void setIdCard_yes_faceImg(String idCard_yes_faceImg) {
		this.idCard_yes_faceImg = idCard_yes_faceImg;
	}

	public String getIdCard_no_faceImg() {
		return idCard_no_faceImg;
	}

	public void setIdCard_no_faceImg(String idCard_no_faceImg) {
		this.idCard_no_faceImg = idCard_no_faceImg;
	}

	public String getAuthImg() {
		return authImg;
	}

	public void setAuthImg(String authImg) {
		this.authImg = authImg;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public String getUser_level() {
		return user_level;
	}

	public void setUser_level(String user_level) {
		this.user_level = user_level;
	}

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

}
